/*
 * @Author: C.
 * @Date: 2023-04-19 10:03:25
 */
import { createEnumObject } from '../../jv_package/utils/data/createEnumObject';
// 物料状态
export const ItemEnum = createEnumObject([
  {
    label: '启用',
    value: 'Enable',
    color: 'green',
  },
  {
    label: '禁用',
    value: 'Disable',
    color: 'grey',
  },
]);

// Bom状态
export const BomEnum = createEnumObject([
  {
    label: '使用',
    value: 'Use',
    color: 'green',
  },
  {
    label: '暂停',
    value: 'Start',
    color: 'red',
  },
]);
// ItemProperty 自制,外购,外协 Homemade,Outsourcing,ExternalCooperation
export const ItemPropertyEnum = createEnumObject([
  {
    label: '自制',
    value: 'Homemade',
  },
  {
    label: '外购',
    value: 'Outsourcing',
  },
  {
    label: '外协',
    value: 'ExternalCooperation',
  },
]);

// bom明细状态枚举
export const BomItemEnum = createEnumObject([
  {
    label: '启用',
    value: 'Enable',
    color: 'green',
  },
  {
    label: '禁用',
    value: 'Disable',
    color: 'red',
  },
]);
